/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package skelbkim;

import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author laimis
 */
public class Main {

    public static String name = "Laimonas";
    public static String phone = "867047891";
    public static String email = "laimis.milasius@gmail.com";
    public static String noticeRange = "Paslaugos";
    //public static String noticeTitle = "Atlieku įvairius programavimo darbus";
   // public static String noticeTitle = "Web svetaines,portalai,dizainas";
    public static String noticeTitle = "WEB svetainių, portalū kūrimas";
   // public static String noticeText = "Web svetaines,portalai,dizainas : java EE, PHP, MySQL, HTML, Ajax.";
    public static String noticeText = "WEB svetainių, portalū kūrimas, priežiūra, atnaujinimas.";

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        Skelbikas skelbSkelbikas = new Skelbikas(); //pratestuotas vaikia..
        try {
            skelbSkelbikas.setUp();
            skelbSkelbikas.newNotation(noticeText, phone, name, noticeTitle, email);
        } catch (Exception ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        }

        Lenta skelbLenta = new Lenta();   //pratestuotas vaikia..
        try {
            skelbLenta.setUp();
            skelbLenta.newNotation(noticeText, phone, name, noticeTitle, email);
        } catch (Exception ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        }

        Skelbimai skelbSkelbimai = new Skelbimai();//pratestuotas vaikia..
        try {
            skelbSkelbimai.setUp();
            skelbSkelbimai.newNotation(noticeText, phone, name, noticeTitle, email);
        } catch (Exception ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        }

        Skelbimas skelbSkelbimas = new Skelbimas();//pratestuotas vaikia..
        try {
            skelbSkelbimas.setUp();
            skelbSkelbimas.newNotation(noticeText, phone, name, noticeTitle, email);
        } catch (Exception ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        }

        Look skelbLook = new Look();
        try {
            skelbLook.setUp();
            skelbLook.newNotation(noticeText, phone, name, noticeTitle, email);
        } catch (Exception ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        }

        NSL skelbNSL = new NSL();
        try {
            skelbNSL.setUp();
            skelbNSL.newNotation(noticeText, phone, name, noticeTitle, email);
        } catch (Exception ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        }

        SkelbiamInfo skelbSkelbiamInfo = new SkelbiamInfo();
        try {
            skelbSkelbiamInfo.setUp();
            skelbSkelbiamInfo.newNotation(noticeText, phone, name, noticeTitle, email);
        } catch (Exception ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        }
        
        SkelbimaiNet skelbSkelbimaiNet = new SkelbimaiNet();
        try {
            skelbSkelbimaiNet.setUp();
            skelbSkelbimaiNet.newNotation(noticeText, phone, name, noticeTitle, email);
        } catch (Exception ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        }

        Skelbkime skelbSkelbkime = new Skelbkime();
        try {
            skelbSkelbkime.setUp();
            skelbSkelbkime.newNotation(noticeText, phone, name, noticeTitle, email);
        } catch (Exception ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        }

//---------------------reikia testuoti----------------------------------------



//-------------------komplikuoti ------------------------------------------
//                Olx skelbOlx = new Olx();
//        try {
//            skelbOlx.setUp();
//            skelbOlx.newNotation(noticeText, phone, name, noticeTitle, email);
//        } catch (Exception ex) {
//            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
//        }

//                Skelbiu24 skelbSkelbiu24 = new Skelbiu24();
//        try {
//            skelbSkelbiu24.setUp();
//            skelbSkelbiu24.newNotation(noticeText, phone, name, noticeTitle, email);
//        } catch (Exception ex) {
//            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
//        }


        //------------- paskutiniai komplikuoti--------------------

        Nskelbimai skelbNskelbimai = new Nskelbimai();
        try {
            skelbNskelbimai.setUp();
            skelbNskelbimai.newNotation(noticeText, phone, name, noticeTitle, email);
        } catch (Exception ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
